package com.aerotechnic.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonProperty;

@Entity
@Table(name = "PHASE")
public class Phase extends GanttTask {
	@Column(name = "Code")
	private int code;
	
	@JsonProperty("code")
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	@Override
	public String toString() {
		return "Phase [code=" + code + ", intitule=" + intitule + ", id=" + id
				+ "]";
	}

}
